##
# makefile - Created by Timothy Morey on 5/11/2012
#
# This is the makefile for the nvn-server application.
#

#HACK: getting errors when using LD=ld, so overriding it with gcc
LD=gcc

CFLAGS += -MD -MP -g -I../libnvn -I/usr/include/libxml2
LDFLAGS += -g -L../lib -lnvn -lnetcdf -lpthread

SRC = $(wildcard *.c)

nvn-server: $(SRC:%.c=%.o)
	$(LD) $(LDFLAGS) -o $@ $^

-include $(SRC:%.c=%.d)

clean:
	rm -v -f nvn-server *.d *.o *~ *.gch

install: nvn-server
	cp nvn-server ../bin
